#ifndef MULTIROBOTCONTROLDLG_H
#define MULTIROBOTCONTROLDLG_H

#include <QDialog>
#include <QWidget>
#include <QTimer>
#include <QStandardItem>
#include "../CommunicateDelegate/gSoapFoundation/soapStub.h"
//using namespace hmigsoapnamespace;

class CommunicateNormalDelegate;

namespace Ui {
class MultiRobotControlDlg;
}

class MultiRobotControlDlg : public QDialog
{
    Q_OBJECT

public:
    explicit MultiRobotControlDlg(CommunicateNormalDelegate *communicateNormalIn,QWidget *parent = 0);
    ~MultiRobotControlDlg();

public slots:
    void showThisDialog();


private slots:
    void timeOutSlot();

    void on_comboBox_allModel_currentIndexChanged(int index);

    void on_checkBox_allServOn_clicked(bool checked);

    void on_pushButton_allRun_clicked();

    void on_pushButton_allStop_clicked();

    void on_pushButton_all_cease_clicked();



    void on_pushButton_hide_clicked();

private:
    void showAllRobotTaskInfo(TaskManagerInfo taskInfo);
    void showOneRobotTaskInfo(TaskManagerInfo taskInfo, int startLine, int &nextStartLine);



private:
    Ui::MultiRobotControlDlg *ui;
    CommunicateNormalDelegate *communicateNormal;

    QStandardItemModel* model_taskInfo;

    QTimer* timer;
};

#endif // MULTIROBOTCONTROLDLG_H
